// Copyright [2020] <unknown>
#include <bits/stdc++.h>
using namespace std;
// #define ONLINE_JUDGE
#ifndef ONLINE_JUDGE
#define dbg(x...) { cerr << "\033[32;1m" << #x << " -> "; err(x); }
void err() { cerr << "\033[39;0m" << endl; }
template<typename T, typename... A>
void err(T a, A... x) { cerr << a << ' '; err(x...); }
#else
#define dbg(...)
#endif

#define sz(x) ((int)x.size())

typedef long long LL;

int t, n;

bool show(const char a[], int n, const char b[], int m) {
    int cur = 0;
    for (int i=0; i<n; ++i) {
        if (a[i] == b[cur]) {
            ++cur;
            if (cur == m)
                return true;
        }
    }
    // dbg(cur, string(b), string(a));
    return false;
}

const int N = 1e5+50;
char s[N];

const char a[] = "XiaoQiao", b[] = "XiaoHuiHui";

int main(int argc, char const *argv[]) {
    // code
    scanf("%s", s);
    int la = strlen(a), lb = strlen(b);
    int n = strlen(s);
    if (show(s, n, a, la) && show(s, n, b, lb))
        puts("Happy");
    else
        puts("emm");

    return 0;
}
